package top.chenziji;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import top.chenziji.Util.Controller;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception{
        // 加载FXML文件
        FXMLLoader loader = new FXMLLoader(getClass().getResource("sample.fxml"));
        loader.setController(new Controller());
        Parent root = loader.load();
        primaryStage.setTitle("视频自动压缩加密");
        Scene scene = new Scene(root, 542, 247);
        // 加载CSS文件
       // scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm());
        primaryStage.setScene(scene);
        primaryStage.show();
    }


    public static void main(String[] args) {
        launch(args);
        //System.out.println(top.chenziji.Main.class.getResource("").toExternalForm());
    }
}
